package com.spring02.demo.testenum;

import java.util.EnumSet;

public class User {
    private User(){}
    static enum Singleton {
        INSTANCE;
        private User user;
        private Singleton() {
            user = new User();
        }
        public User getInstance() {
            return user;
        }
    }
    public static User getInstance() {
        return Singleton.INSTANCE.getInstance();
    }
}
class UserTest {
    public static void main(String[] args) {

    }
}